(function () {
    const URI = {
        HOMEPAGE: {
            PAGE: '/back/homepage/page',
            STATUS_DATA: '/back/homepage/statusData', // 状态数据
            DISTRIBUTION_DATA: '/back/homepage/distributionData', // 分布数据
            BACKLOG: {
                LIST: '/back/homepage/backlog/list',
                CONFIRM:'/back/homepage/backlog/confirm',
                READ:'/back/homepage/backlog/read'
            }
        },
        RENT: {
            RENTAL: {
                PAGE: '/back/rent/rental/page', // 列表页面
                LIST: '/back/rent/rental/list', // 列表页面
                DETAIL: {
                    PAGE: '/back/rent/rental/detailRental/page', // 详情页面
                    DATA: '/back/rent/rental/detailRental/data', // 获取数据
                    EXPORT:'/back/rent/rental/detailRental/export',  //订单导出
                    RENTDATA: '/back/rent/rental/detailRental/rent', // 获取租金，保证金计算数据
                    GET_COST:'/back/rent/rental/detailRental/getCost',  //计算
                    CANCLE_ORDER:'/back/rent/rental/detailRental/cancle',
                    RECOVER_ORDER:'/back/rent/rental/detailRental/recover', //恢复订单,
                    SURE_ORDER:'/back/rent/rental/detailRental/sureOrder',  //审核
                    EDIT_SAVE:'/back/rent/rental/detailRental/editSave',
                    BINDORDER:{  //绑定生产单
                       PAGE:'/back/rent/rental/detailRental/bind/page',
                        LIST:'/back/rent/rental/detailRental/bind/list',  //已绑定列表
                        CANLIST:'/back/rent/rental/detailRental/bind/Canlist', //可绑定列表,
                        SUBMIT:'/back/rent/rental/detailRental/bind/SubmitList'
                    },
                    OFFORDER:{
                        PAGE:'/back/rent/rental/detailRental/off/page',
                        OFF:'/back/rent/rental/detailRental/off/bindOff'
                    },   //解除绑定
                    CHANGEORDER: {
                        PAGE: '/back/rent/rental/changeOrder/page' , //详情页面-变更记录
                        DATA: '/back/rent/rental/changeOrder/data', // 获取数据
                        RENTDATA: '/back/rent/rental/detailRental/rent', // 获取租金，保证金计算数据
                        LIST1: '/back/rent/rental/changeOrder/Rentallist', // 列表页面
                        LIST2: '/back/rent/rental/changeOrder/Reternlist', // 列表页面
                        LIST3: '/back/rent/rental/changeOrder/subletlist', // 列表页面
                    },
                    CONTRACTMANAGEMENT: {
                        LIST: '/back/rent/rental/contractManagement/list', // 列表页面
                        PAGE: '/back/rent/rental/contractManagement/page' , //详情页面-合同管理页面
                        DELETE:'/back/rent/rental/contractManagement/delete',
                        PREVIEW: '/back/rent/rental/contractManagement/preview' , //详情页面-合同管理-预览
                        UPLOAD:'/back/rent/rental/contractManagement/upload'//详情页面-合同管理-上传
                    }
                },
                CLIENT_CREATE_RENTAL: { // 创建订单续租
                    PAGE: '/back/rent/rental/clientCreateRental/page' // 页面
                    /*SAVE: '/back/Bootstrap/Bootstrap-table/clientCreateAccount/save' // 保存*/
                },
                CLIENT_NEXT_RENTAL: { // 下一步创建订单续租
                    PAGE: '/back/rent/rental/clientNextRental/page', // 页面
                    SAVE: '/back/rent/rental/clientNextRental/save' // 保存页面
                    /*SAVE: '/back/Bootstrap/Bootstrap-table/clientCreateAccount/save' // 保存*/
                }
            },
        },
        BOOTSTRAP: {
            COMPANY_LIST: '/back/Bootstrap/companyList', // 获取机构（公司）列表
            ROLE: { // 角色管理
                ROLE_LIST: '/back/Bootstrap/role/roleList', // 获取角色列表（不分页）
            },
            BOOTSTRAP_TABLE: { // 账户管理
                PAGE: '/back/Bootstrap/Bootstrap-table/page', // 账户管理-页面
                LIST: '/back/Bootstrap/Bootstrap-table/list', // 账户管理-列表
                CREATE_BOOTSTRAP_TABLE: { // 客户-创建账户
                    PAGE: '/back/Bootstrap/Bootstrap-table/clientCreateAccount/page', // 页面
                    SAVE: '/back/Bootstrap/Bootstrap-table/clientCreateAccount/save' // 保存
                },
                PLATFORM_CREATE_BOOTSTRAP_TABLE: { // 平台-创建账户
                    PAGE: '/back/Bootstrap/Bootstrap-table/platformCreateAccount/page', // 页面
                    SAVE: '/back/Bootstrap/Bootstrap-table/platformCreateAccount/save' // 保存
                },
                DETAIL_BOOTSTRAP_TABLE: { // 账户详情
                    PAGE: '/back/Bootstrap/Bootstrap-table/detail/page', // 页面
                    DATA: '/back/Bootstrap/Bootstrap-table/detail/data' // 获取数据
                },
                MODIFY_BOOTSTRAP_TABLE: { // 修改
                    PAGE: '/back/Bootstrap/Bootstrap-table/modify/page', // 页面
                    DATA: '/back/Bootstrap/Bootstrap-table/modify/data', // 获取数据
                    SAVE: '/back/Bootstrap/Bootstrap-table/modify/save' // 保存修改
                },
                DELETE: '/back/Bootstrap/Bootstrap-table/delete', // 删除账户
                ENABLED: '/back/Bootstrap/Bootstrap-table/enabled', // 启用账户
                DISABLED: '/back/Bootstrap/Bootstrap-table/disabled' // 禁用账户
            },
        },
        //统计分析
        STATISTIC:{
            PERFORMANCE:{
                PAGE:'/back/statistic/performance/page',//活跃度统计——页面
                DATA:'/back/statistic/performance/pies'//活跃度统计——饼状图
            },
            AGENT:{
                PAGE:'/back/statistic/agent/page',//动态利用率统计——页面
                DATA:'/back/statistic/agent/pie'//动态利用率统计——饼状图
            },
            COOPERATION:{
                PAGE:'/back/statistic/cooperation/page',//网点变量统计——页面
                DATA:'/back/statistic/cooperation/bar'//网点变量统计——柱状图
            },
        },
        // 个人中心
        MEMBER: {
            PAGE: '/back/memberCenter',
            SAVE: '/back/memberCenter/save',
            MODIFY: { //修改个人信息
                PAGE: '/back/memberCenter/modify/page', // 页面
                DATA: '/back/memberCenter/modify/data', // 数据-个人信息
                SAVE: '/back/memberCenter/modify/save' // 保存
            },
            UPDATE_PWD: '/back/memberCenter/updatePwd'
        },
        // 登录
        LOGIN: {
            RETRIEVE_PASSWORD: { // 忘记密码
                PAGE: '/login/retrievePassword/page', // 忘记密码页面
                SEND: '/login/retrievePassword/send', // 发送手机验证码
                EMAIL: '/login/retrievePassword/email', // 发送邮箱验证码
                CHECK: '/login/retrievePassword/check', // 校验手机号和验证码是否匹配
                CODE:'/login/retrievePassword/code',//教研邮箱和验证码是否匹配
                REINSTALL: { // 重新设置密码
                    PAGE: '/login/retrievePassword/reinstall/page', // 重新设置密码页面
                    SAVE: '/login/retrievePassword/reinstall/save' // 保存新密码
                }
            }
        },
        //-注册
        REGISTER: {
            PAGE: '/register/page', // 页面
            SEND: '/register/send', // 发送手机验证码
            SAVE: '/register/save', // 保存注册信息
            VAL_PHONE:'/register/phone',
            VAL_NEXT:'/register/next'//下一步校验
        },
        // 注销
        LOGOUT: {
            PAGE: '/logout/page',
            REQ: '/logout'
        },
        // 咨询客服
        CONSULT: {
            CREATE: {
                SAVE: '/consult/create/save'
            }
        }

    };
    window.URI = URI;
})();

(function () {
    //企业类型：-1=托盘运营商；1=托盘生产商；2=投资商；3=运营代理商；4=托盘承租方；5=POI；
    const COMPANY_TYPE = {
        OPERATOR: -1, // 托盘运营商
        CLIENT: 4, // 客户管理（托盘承租方）
        SUPPLIER: 1, // 供应商（托盘生产商）
        INVESTOR: 2, // 投资商
        AGENT: 3, // 代理商
        POI: 5 // POI 管理
    };
    window.COMPANY_TYPE = COMPANY_TYPE;

    const DEFAULT_IMG = {
        license: 'img/dev/license.png',
        cardFront: 'img/dev/icar_front.png',
        cardContrary: 'img/dev/icar_contrary.png',
        portrait: 'img/portrait.png'
    };
    window.DEFAULT_IMG = DEFAULT_IMG;

    const ACTION = {
        CREATE: 'create',
        MODIFY: 'modify'
    };
    window.ACTION = ACTION;
})();































